import { URLRequestPrefix } from '../config';
import { post } from '../http';

export const createMonitoring = async (data: any) => await post(`${URLRequestPrefix.Main}/monitoring/create`, data);

export const deleteMonitoring = async (id: number) => await post(`${URLRequestPrefix.Main}/monitoring/delete`, { id });

export const getMonitorings = async ({ pageNo, pageSize }) =>
  await post(`${URLRequestPrefix.Main}/monitoring/list`, { pageNo, pageSize });
